package com.example.lvsuo.service.impl;

import com.example.lvsuo.modal.Result;
import com.example.lvsuo.service.IHrDegreeService;
import com.example.lvsuo.entity.HrDegree;
import com.example.lvsuo.mapper.HrDegreeMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 心心念念
 * @since 2021-03-30
 */
@Service
public class HrDegreeServiceImpl extends ServiceImpl<HrDegreeMapper, HrDegree> implements IHrDegreeService {

    @Autowired
    HrDegreeMapper hrDegreeMapper;

    /**
     * 根据律师表id查询教育经历
     * @param id
     * @return
     */
    @Override
    public List<HrDegree> getHrDegree(String id) {
        return hrDegreeMapper.getHrDegree(id);
    }

    /**
     * 根据id添加教育经历
     * @param hrDegree
     */
    @Override
    public void insertHrDegree(HrDegree hrDegree) {
        hrDegreeMapper.insertHrDegree(hrDegree);
    }
}
